↳ Prolog
↳ PrologToPiTRSProof
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
QS_IN(cons(X, L), S) → U11(X, L, S, split_in(L, X, L1, L2))
QS_IN(cons(X, L), S) → SPLIT_IN(L, X, L1, L2)
SPLIT_IN(cons(X, L), Y, L1, cons(X, L2)) → U81(X, L, Y, L1, L2, geq_in(X, Y))
SPLIT_IN(cons(X, L), Y, L1, cons(X, L2)) → GEQ_IN(X, Y)
GEQ_IN(s(X), s(Y)) → U111(X, Y, geq_in(X, Y))
GEQ_IN(s(X), s(Y)) → GEQ_IN(X, Y)
U81(X, L, Y, L1, L2, geq_out(X, Y)) → U91(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
U81(X, L, Y, L1, L2, geq_out(X, Y)) → SPLIT_IN(L, Y, L1, L2)
SPLIT_IN(cons(X, L), Y, cons(X, L1), L2) → U61(X, L, Y, L1, L2, less_in(X, Y))
SPLIT_IN(cons(X, L), Y, cons(X, L1), L2) → LESS_IN(X, Y)
LESS_IN(s(X), s(Y)) → U101(X, Y, less_in(X, Y))
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
U61(X, L, Y, L1, L2, less_out(X, Y)) → U71(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
U61(X, L, Y, L1, L2, less_out(X, Y)) → SPLIT_IN(L, Y, L1, L2)
U11(X, L, S, split_out(L, X, L1, L2)) → U21(X, L, S, L2, qs_in(L1, S1))
U11(X, L, S, split_out(L, X, L1, L2)) → QS_IN(L1, S1)
U21(X, L, S, L2, qs_out(L1, S1)) → U31(X, L, S, S1, qs_in(L2, S2))
U21(X, L, S, L2, qs_out(L1, S1)) → QS_IN(L2, S2)
U31(X, L, S, S1, qs_out(L2, S2)) → U41(X, L, S, append_in(S1, cons(X, S2), S))
U31(X, L, S, S1, qs_out(L2, S2)) → APPEND_IN(S1, cons(X, S2), S)
APPEND_IN(cons(X, L1), L2, cons(X, L3)) → U51(X, L1, L2, L3, append_in(L1, L2, L3))
APPEND_IN(cons(X, L1), L2, cons(X, L3)) → APPEND_IN(L1, L2, L3)
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
QS_IN(cons(X, L), S) → U11(X, L, S, split_in(L, X, L1, L2))
QS_IN(cons(X, L), S) → SPLIT_IN(L, X, L1, L2)
SPLIT_IN(cons(X, L), Y, L1, cons(X, L2)) → U81(X, L, Y, L1, L2, geq_in(X, Y))
SPLIT_IN(cons(X, L), Y, L1, cons(X, L2)) → GEQ_IN(X, Y)
GEQ_IN(s(X), s(Y)) → U111(X, Y, geq_in(X, Y))
GEQ_IN(s(X), s(Y)) → GEQ_IN(X, Y)
U81(X, L, Y, L1, L2, geq_out(X, Y)) → U91(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
U81(X, L, Y, L1, L2, geq_out(X, Y)) → SPLIT_IN(L, Y, L1, L2)
SPLIT_IN(cons(X, L), Y, cons(X, L1), L2) → U61(X, L, Y, L1, L2, less_in(X, Y))
SPLIT_IN(cons(X, L), Y, cons(X, L1), L2) → LESS_IN(X, Y)
LESS_IN(s(X), s(Y)) → U101(X, Y, less_in(X, Y))
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
U61(X, L, Y, L1, L2, less_out(X, Y)) → U71(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
U61(X, L, Y, L1, L2, less_out(X, Y)) → SPLIT_IN(L, Y, L1, L2)
U11(X, L, S, split_out(L, X, L1, L2)) → U21(X, L, S, L2, qs_in(L1, S1))
U11(X, L, S, split_out(L, X, L1, L2)) → QS_IN(L1, S1)
U21(X, L, S, L2, qs_out(L1, S1)) → U31(X, L, S, S1, qs_in(L2, S2))
U21(X, L, S, L2, qs_out(L1, S1)) → QS_IN(L2, S2)
U31(X, L, S, S1, qs_out(L2, S2)) → U41(X, L, S, append_in(S1, cons(X, S2), S))
U31(X, L, S, S1, qs_out(L2, S2)) → APPEND_IN(S1, cons(X, S2), S)
APPEND_IN(cons(X, L1), L2, cons(X, L3)) → U51(X, L1, L2, L3, append_in(L1, L2, L3))
APPEND_IN(cons(X, L1), L2, cons(X, L3)) → APPEND_IN(L1, L2, L3)
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
APPEND_IN(cons(X, L1), L2, cons(X, L3)) → APPEND_IN(L1, L2, L3)
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
APPEND_IN(cons(X, L1), L2, cons(X, L3)) → APPEND_IN(L1, L2, L3)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
APPEND_IN(cons(X, L1), L2) → APPEND_IN(L1, L2)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
↳ PiDP
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
↳ PiDP
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
↳ PiDP
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
GEQ_IN(s(X), s(Y)) → GEQ_IN(X, Y)
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
GEQ_IN(s(X), s(Y)) → GEQ_IN(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
GEQ_IN(s(X), s(Y)) → GEQ_IN(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
SPLIT_IN(cons(X, L), Y, cons(X, L1), L2) → U61(X, L, Y, L1, L2, less_in(X, Y))
SPLIT_IN(cons(X, L), Y, L1, cons(X, L2)) → U81(X, L, Y, L1, L2, geq_in(X, Y))
U81(X, L, Y, L1, L2, geq_out(X, Y)) → SPLIT_IN(L, Y, L1, L2)
U61(X, L, Y, L1, L2, less_out(X, Y)) → SPLIT_IN(L, Y, L1, L2)
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
SPLIT_IN(cons(X, L), Y, cons(X, L1), L2) → U61(X, L, Y, L1, L2, less_in(X, Y))
SPLIT_IN(cons(X, L), Y, L1, cons(X, L2)) → U81(X, L, Y, L1, L2, geq_in(X, Y))
U81(X, L, Y, L1, L2, geq_out(X, Y)) → SPLIT_IN(L, Y, L1, L2)
U61(X, L, Y, L1, L2, less_out(X, Y)) → SPLIT_IN(L, Y, L1, L2)
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
SPLIT_IN(cons(X, L), Y) → U81(X, L, Y, geq_in(X, Y))
U61(X, L, Y, less_out) → SPLIT_IN(L, Y)
U81(X, L, Y, geq_out) → SPLIT_IN(L, Y)
SPLIT_IN(cons(X, L), Y) → U61(X, L, Y, less_in(X, Y))
less_in(s(X), s(Y)) → U10(less_in(X, Y))
less_in(0, s(X)) → less_out
geq_in(s(X), s(Y)) → U11(geq_in(X, Y))
geq_in(s(X), 0) → geq_out
geq_in(X, X) → geq_out
U10(less_out) → less_out
U11(geq_out) → geq_out
less_in(x0, x1)
geq_in(x0, x1)
U10(x0)
U11(x0)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDPToQDPProof
U11(X, L, S, split_out(L, X, L1, L2)) → QS_IN(L1, S1)
U21(X, L, S, L2, qs_out(L1, S1)) → QS_IN(L2, S2)
U11(X, L, S, split_out(L, X, L1, L2)) → U21(X, L, S, L2, qs_in(L1, S1))
QS_IN(cons(X, L), S) → U11(X, L, S, split_in(L, X, L1, L2))
qs_in(cons(X, L), S) → U1(X, L, S, split_in(L, X, L1, L2))
split_in(cons(X, L), Y, L1, cons(X, L2)) → U8(X, L, Y, L1, L2, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(X, Y, geq_in(X, Y))
geq_in(s(X), 0) → geq_out(s(X), 0)
geq_in(X, X) → geq_out(X, X)
U11(X, Y, geq_out(X, Y)) → geq_out(s(X), s(Y))
U8(X, L, Y, L1, L2, geq_out(X, Y)) → U9(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in(cons(X, L), Y, cons(X, L1), L2) → U6(X, L, Y, L1, L2, less_in(X, Y))
less_in(s(X), s(Y)) → U10(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U10(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U6(X, L, Y, L1, L2, less_out(X, Y)) → U7(X, L, Y, L1, L2, split_in(L, Y, L1, L2))
split_in([], X, [], []) → split_out([], X, [], [])
U7(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, cons(X, L1), L2)
U9(X, L, Y, L1, L2, split_out(L, Y, L1, L2)) → split_out(cons(X, L), Y, L1, cons(X, L2))
U1(X, L, S, split_out(L, X, L1, L2)) → U2(X, L, S, L2, qs_in(L1, S1))
qs_in([], []) → qs_out([], [])
U2(X, L, S, L2, qs_out(L1, S1)) → U3(X, L, S, S1, qs_in(L2, S2))
U3(X, L, S, S1, qs_out(L2, S2)) → U4(X, L, S, append_in(S1, cons(X, S2), S))
append_in(cons(X, L1), L2, cons(X, L3)) → U5(X, L1, L2, L3, append_in(L1, L2, L3))
append_in([], L, L) → append_out([], L, L)
U5(X, L1, L2, L3, append_out(L1, L2, L3)) → append_out(cons(X, L1), L2, cons(X, L3))
U4(X, L, S, append_out(S1, cons(X, S2), S)) → qs_out(cons(X, L), S)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPOrderProof
U21(X, L2, qs_out(S1)) → QS_IN(L2)
QS_IN(cons(X, L)) → U11(X, split_in(L, X))
U11(X, split_out(L1, L2)) → U21(X, L2, qs_in(L1))
U11(X, split_out(L1, L2)) → QS_IN(L1)
qs_in(cons(X, L)) → U1(X, split_in(L, X))
split_in(cons(X, L), Y) → U8(X, L, Y, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(geq_in(X, Y))
geq_in(s(X), 0) → geq_out
geq_in(X, X) → geq_out
U11(geq_out) → geq_out
U8(X, L, Y, geq_out) → U9(X, split_in(L, Y))
split_in(cons(X, L), Y) → U6(X, L, Y, less_in(X, Y))
less_in(s(X), s(Y)) → U10(less_in(X, Y))
less_in(0, s(X)) → less_out
U10(less_out) → less_out
U6(X, L, Y, less_out) → U7(X, split_in(L, Y))
split_in([], X) → split_out([], [])
U7(X, split_out(L1, L2)) → split_out(cons(X, L1), L2)
U9(X, split_out(L1, L2)) → split_out(L1, cons(X, L2))
U1(X, split_out(L1, L2)) → U2(X, L2, qs_in(L1))
qs_in([]) → qs_out([])
U2(X, L2, qs_out(S1)) → U3(X, S1, qs_in(L2))
U3(X, S1, qs_out(S2)) → U4(append_in(S1, cons(X, S2)))
append_in(cons(X, L1), L2) → U5(X, append_in(L1, L2))
append_in([], L) → append_out(L)
U5(X, append_out(L3)) → append_out(cons(X, L3))
U4(append_out(S)) → qs_out(S)
qs_in(x0)
split_in(x0, x1)
geq_in(x0, x1)
U11(x0)
U8(x0, x1, x2, x3)
less_in(x0, x1)
U10(x0)
U6(x0, x1, x2, x3)
U7(x0, x1)
U9(x0, x1)
U1(x0, x1)
U2(x0, x1, x2)
U3(x0, x1, x2)
append_in(x0, x1)
U5(x0, x1)
U4(x0)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
QS_IN(cons(X, L)) → U11(X, split_in(L, X))
Used ordering: Polynomial interpretation [25]:
U21(X, L2, qs_out(S1)) → QS_IN(L2)
U11(X, split_out(L1, L2)) → U21(X, L2, qs_in(L1))
U11(X, split_out(L1, L2)) → QS_IN(L1)
POL(0) = 0
POL(QS_IN(x1)) = x1
POL(U1(x1, x2)) = 0
POL(U10(x1)) = 0
POL(U11(x1)) = 1
POL(U11(x1, x2)) = x2
POL(U2(x1, x2, x3)) = 0
POL(U21(x1, x2, x3)) = x2
POL(U3(x1, x2, x3)) = 0
POL(U4(x1)) = 0
POL(U5(x1, x2)) = 1 + x2
POL(U6(x1, x2, x3, x4)) = 1 + x2
POL(U7(x1, x2)) = 1 + x2
POL(U8(x1, x2, x3, x4)) = x2 + x4
POL(U9(x1, x2)) = 1 + x2
POL([]) = 0
POL(append_in(x1, x2)) = 1 + x1 + x2
POL(append_out(x1)) = 1 + x1
POL(cons(x1, x2)) = 1 + x2
POL(geq_in(x1, x2)) = 1
POL(geq_out) = 1
POL(less_in(x1, x2)) = 0
POL(less_out) = 0
POL(qs_in(x1)) = 0
POL(qs_out(x1)) = 0
POL(s(x1)) = 0
POL(split_in(x1, x2)) = x1
POL(split_out(x1, x2)) = x1 + x2
U8(X, L, Y, geq_out) → U9(X, split_in(L, Y))
split_in([], X) → split_out([], [])
geq_in(s(X), s(Y)) → U11(geq_in(X, Y))
split_in(cons(X, L), Y) → U8(X, L, Y, geq_in(X, Y))
U6(X, L, Y, less_out) → U7(X, split_in(L, Y))
split_in(cons(X, L), Y) → U6(X, L, Y, less_in(X, Y))
geq_in(s(X), 0) → geq_out
U9(X, split_out(L1, L2)) → split_out(L1, cons(X, L2))
geq_in(X, X) → geq_out
U7(X, split_out(L1, L2)) → split_out(cons(X, L1), L2)
U11(geq_out) → geq_out
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
U21(X, L2, qs_out(S1)) → QS_IN(L2)
U11(X, split_out(L1, L2)) → U21(X, L2, qs_in(L1))
U11(X, split_out(L1, L2)) → QS_IN(L1)
qs_in(cons(X, L)) → U1(X, split_in(L, X))
split_in(cons(X, L), Y) → U8(X, L, Y, geq_in(X, Y))
geq_in(s(X), s(Y)) → U11(geq_in(X, Y))
geq_in(s(X), 0) → geq_out
geq_in(X, X) → geq_out
U11(geq_out) → geq_out
U8(X, L, Y, geq_out) → U9(X, split_in(L, Y))
split_in(cons(X, L), Y) → U6(X, L, Y, less_in(X, Y))
less_in(s(X), s(Y)) → U10(less_in(X, Y))
less_in(0, s(X)) → less_out
U10(less_out) → less_out
U6(X, L, Y, less_out) → U7(X, split_in(L, Y))
split_in([], X) → split_out([], [])
U7(X, split_out(L1, L2)) → split_out(cons(X, L1), L2)
U9(X, split_out(L1, L2)) → split_out(L1, cons(X, L2))
U1(X, split_out(L1, L2)) → U2(X, L2, qs_in(L1))
qs_in([]) → qs_out([])
U2(X, L2, qs_out(S1)) → U3(X, S1, qs_in(L2))
U3(X, S1, qs_out(S2)) → U4(append_in(S1, cons(X, S2)))
append_in(cons(X, L1), L2) → U5(X, append_in(L1, L2))
append_in([], L) → append_out(L)
U5(X, append_out(L3)) → append_out(cons(X, L3))
U4(append_out(S)) → qs_out(S)
qs_in(x0)
split_in(x0, x1)
geq_in(x0, x1)
U11(x0)
U8(x0, x1, x2, x3)
less_in(x0, x1)
U10(x0)
U6(x0, x1, x2, x3)
U7(x0, x1)
U9(x0, x1)
U1(x0, x1)
U2(x0, x1, x2)
U3(x0, x1, x2)
append_in(x0, x1)
U5(x0, x1)
U4(x0)